home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / csplitba / csplitba.txt < prev    next >
Text File  |  1998-01-09  |  2KB  |  49 lines

  1. CSplitBarCtrl.txt - Text file for CSplitBarCtrl.OCX 
  2. Copyright (c) 1998 Luis Reis, lreis@comnet.ca
  3.  
  4. The accompanying files may be distributed on the condition that they
  5. are distributed in full and unchanged, and that no fee is charged for
  6. such distribution with the exception of reasonable shipping and media
  7. charges. In addition, the CSplitBarCtrl.OCX control may be
  8. incorporated into your own programs and the resulting programs may be
  9. distributed without payment of royalties, also the author is not 
  10. responsible in any way for ANY damages that may arise out of the use,
  11. inability to use, or any data that this control may generate.
  12.  
  13. ==========================================================================
  14.  
  15. CSplitBarCtrl.OCX allows you to create a movable split bar between two 
  16. controls (like the one in Windows Explorer), just by assigning the 
  17. CSplitBarCtrl control the left and right hwnd of the controls you want 
  18. to use it with.
  19.  
  20. Methods:
  21.  
  22. ' **NOTE** The controls you wish to use the splitbar with must be put on top 
  23. ' of the CSplitBarCtrl control to allow drawing on the child controls
  24.  
  25. 'Required
  26. CSplitCtrl.SetLeftChild ' hWnd of the left control
  27. CSplitCtrl.SetRightChild ' hWnd of the right control
  28. CSplitCtrl.ResizeControls ' Resize the controls (MUST be called 
  29.                  ' after setting both hWnd's)
  30.  
  31. 'Optional
  32. CSplitBarCtrl.SetMaxMove ' Set the maximum that the split bar can be 
  33.              ' moved left or right (in Points)
  34. CSplitBarCtrl.SetSplitBarEnabled ' Enable or disable the movement of the bar
  35.  
  36. Example:
  37.  
  38. To try this example, paste the code into the Declarations section of a 
  39. form with a CSplitBarCtrl control named CSplitBarCtrl1, then place a 
  40. ListBox control named List1 with the IntegralHeight property set to False, 
  41. and a Textbox control named Text1 into the CSplitBarCtrl1 control and then 
  42. press F5.
  43.  
  44.  
  45. Private Sub Form_Load ()
  46.  CSplitCtrl1.SetLeftChild Text1.hWnd
  47.  CSplitCtrl1.SetRightChild List1.hWnd
  48.  CSplitCtrl1.ResizeControls
  49. End Sub